<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Grom Hellscream
 * Date: 11/16/12
 * Time: 2:11 PM
 * To change this template use File | Settings | File Templates.
 */
//no direct access
defined('_JEXEC') or die;
?>

<?php if (JFactory::getUser()->id !== 0): ?>
<ul>
    <li>
        <a>Tùy chỉnh cá nhân</a>
        <ul>        
            <?php if (JFactory::getUser()->authorise('vast.hosocanbo.edit.own', 'com_vast')): ?>
            <li>
                <a href="<?php echo JRoute::_('index.php?option=com_vast&view=suaanhcanhan&id=' . $canbo->id); ?>">Sửa ảnh cá nhân</a>
            </li>
            <?php endif; ?>
            <?php if (JFactory::getUser()->authorise('vast.hosocanbo.edit.own', 'com_vast')): ?>
            <li>
                <a href="<?php echo JRoute::_('index.php?option=com_vast&view=suamatkhau&id=' . JFactory::getUser()->id); ?>">Thay đổi mật khẩu</a>
            </li>
            <?php endif; ?>
            <?php if (JFactory::getUser()->authorise('vast.nhatkyhethong.view.own', 'com_vast')): ?>
            <li>
                <a href="<?php echo JRoute::_('index.php?option=com_vast&view=nhatkyhethongs&id=' . $canbo->id); ?>">Xem nhật ký hệ thống</a>
            </li>
            <?php endif; ?>
        </ul>
    </li>
</ul>
<?php endif; ?>